]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Fix build with clang -Werror
authorTing-Wei Lan <lantw@src.gnome.org>
Sat, 26 Sep 2015 10:32:37 +0000 (18:32 +0800)
committerTing-Wei Lan <lantw@src.gnome.org>
Thu, 25 Feb 2016 18:06:55 +0000 (02:06 +0800)
https://bugzilla.gnome.org/show_bug.cgi?id=755659

src/gtkactionmuxer.c
src/shell-glsl-quad.c

index 9329a94c6f428b95181607b18148b7f1b6293fc3..1cdf2940af85f895b05ce47878a2fefd1397e0e1 100644 (file)
@@ -139,7 +139,7 @@ gtk_action_muxer_list_actions (GActionGroup *action_group)
                             actions);
     }
 
-  return (gchar **) g_array_free (actions, FALSE);
+  return (gchar **)(void *) g_array_free (actions, FALSE);
 }
 
 static Group *
index b6c591ad3e5734f3de7cafcb4646d480523e8d8e..ba62a98f5f65f125000906685ab342dc9fe73ca2 100644 (file)
@@ -84,12 +84,12 @@ shell_glsl_quad_add_glsl_snippet (ShellGLSLQuad    *quad,
 
   if (is_replace)
     {
-      snippet = cogl_snippet_new (hook, declarations, NULL);
+      snippet = cogl_snippet_new ((CoglSnippetHook)hook, declarations, NULL);
       cogl_snippet_set_replace (snippet, code);
     }
   else
     {
-      snippet = cogl_snippet_new (hook, declarations, code);
+      snippet = cogl_snippet_new ((CoglSnippetHook)hook, declarations, code);
     }
 
   if (hook == SHELL_SNIPPET_HOOK_VERTEX ||